import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import user from './views/nav1/user.vue'
import Page4 from './views/nav2/Page4.vue'
import echarts from './views/charts/echarts.vue'
import Department from './views/org/Department'
import Employee from './views/org/Employee'
import Dictionary from './views/org/systemdictionarydetail'
import ShopRegister from './views/ShopRegister'
import SearchMasterMsgPending from './views/SearchMasterMsgPending.vue'
import SearchMasterMsgProcessedvue from './views/SearchMasterMsgProcessed.vue'
import Pet from './views/Pet.vue'

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/shopRegister',
        component: ShopRegister,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        leaf:true,
        name: 'Charts',
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/echarts', component: echarts, name: '首页' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '导航一',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/department', component: Department, name: '部门管理' },
            { path: '/employee', component: Employee, name: '员工管理' },
            { path: '/user', component: user, name: '列表' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '导航二',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/page4', component: Page4, name: '页面4' },
            { path: '/dictionary', component: Dictionary, name: '数据字典' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '导航三',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/SearchMasterMsgPending', component: SearchMasterMsgPending, name: '待处理宠物' },
            { path: '/SearchMasterMsgProcessedvue', component: SearchMasterMsgProcessedvue, name: '已处理宠物' },
            { path: '/Pet', component: Pet, name: '宠物上下架管理' }
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;